package com.ibm.cps.sql;

import java.util.List;
import java.util.Map;

import com.ibm.cps.sql.expression.ValueExpression;

public class SelectItemDescriptor {
	private final boolean globalSelectAll;
	private final List<String> selectAllTables;
	private final Map<String, ValueExpression> columnExpression;
	
	public SelectItemDescriptor(boolean globalSelectAll,
			List<String> selectAllTables,
			Map<String, ValueExpression> columnExpression) {
		this.globalSelectAll = globalSelectAll;
		this.selectAllTables = selectAllTables;
		this.columnExpression = columnExpression;
	}

	public boolean isGlobalSelectAll() {
		return globalSelectAll;
	}

	public List<String> getSelectAllTables() {
		return selectAllTables;
	}

	public Map<String, ValueExpression> getColumnExpression() {
		return columnExpression;
	}

	@Override
	public String toString() {
		return "{\"ProjectionDescriptor\":{\"globalSelectAll\":\""
				+ globalSelectAll + "\", \"selectAllTables\":\""
				+ selectAllTables + "\", \"columnExpression\":\""
				+ columnExpression + "\"}}";
	}
	
}
